<template>
  <div class="mainBody">
    <div class="mainImgBox">
      <div class="titleTop">
        <span class="fontHt">查看不能播放反馈</span>
      </div>
      <img src="http://mcgamehome.love/img/background/qOUe5d.jpg" alt="http://mcgamehome.love/img/background/qOUe5d.jpg">
    </div>
    <div class="nrBody">
      <span class="spanBt">不能播放的集数</span>
      <div class="bugList" v-for="(item,index) in list.items" :key="item.id">
        <span>主键id：{{item.id}}</span>
        <span>视频id：{{item.vnameN}}</span>
        <span>播放集数：{{item.vepicN}}</span>
        <button type="button" class="commentUpButton" @click="clear(item.id,index)">消除</button>
      </div>
    </div>
  </div>
</template>

<script setup>
import {onMounted, reactive, ref} from "vue";
import API from "@/api/AxiosConfig";

const list = reactive({
  items: []
})
const tip = ref(null)
onMounted(() => {
  API({ url: '/api/getNoPlayer', method: 'get' }).then(res => {
    list.items = res.data
  }).catch(err => {
  })
})

function clear(i,c) {
  API({ url: '/api/deleteNoPlayer/'+i+'', method: 'get' }).then(res => {
    tip.value = res.data
  }).catch(err => {
  })
  list.items.splice(c,1)
}
</script>

<style lang="less" scoped>
.bugList{
  display: flex;
  width: 100%;
  padding: 5px 5px;
  margin: 10px 0;
  font-size: 20px;
}
.bugList>span{
  align-content: center;
  flex-wrap: wrap;
  display: flex;
  flex: 1;
}
.spanBt{
  color: deeppink;
  font-size: 24px;
  justify-content: center;
  display: flex;
  width: 100%;
  margin-bottom: 10px;
}
.commentUpButton{
  padding: 5px 15px;
  color: white;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-size: 15px;
  border-radius: 2px;
  outline: none;
  border: none;
  background-color: #2d8cf0;
  margin-left: 15px;
}

.nrBody{
  display: flex;
  padding: 35px 35px;
  flex-direction: column;
  font-family: 黑体;
  font-weight: bold;
}
.mainBody{
  display: flex;
  width: 100%;
  flex-direction: column;
}
.mainImgBox{
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}
.mainImgBox>img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}
.titleTop{
  color: #FFFFFF;
  font-size: 40px;
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  z-index: 1;
  user-select: none;
}
.fontHt{
  font-family: 黑体;
  font-weight: bold;
}
@media screen and (min-width: 2061px) {
  .nrBody {
    width: 1680px;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1559.8px) and (max-width: 2060.8px) {
  .nrBody {
    margin: 0 140px 0 140px;
  }
}
</style>
